<h1>Listing serials</h1>

<table>
  <tr>
    <th>Name</th>
    <th>ISSN</th>
    <th>Publisher</th>
  </tr>

<% for serial in @serials %>
  <tr  class="<%= cycle('list-line-odd', 'list-line-even') %>">
    <td><%=h serial.name %></td>
    <td><%=h serial.issn %></td>
    <td><%=h serial.publisher %></td>
    <td><%= link_to 'Show', serial_path(serial) %></td>
    <td><%= link_to 'Edit', edit_serial_path(serial) %></td>
    <td><%= link_to 'Destroy', serial_path(serial), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New serial', new_serial_path %>